package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * city
 * </p>
 * @author itheima
 */
@Data
@TableName("tb_city")
public class City implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
	private Integer id; //id



    @ApiModelProperty("城市名称")
    @TableField("name")
	private String name;//城市名称

    @ApiModelProperty("城市编码")
    @TableField("code")
	private String code;//城市编码

    @ApiModelProperty("是否开放")
    @TableField("is_open")
	private String isOpen;//是否开放



}
